package com.chen.springcloud.demoeurekaclient.controller;

import com.chen.springcloud.democommon.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
@Api("Eureka Client Api test")
public class EurekaClientController {

    @ApiOperation(value = "查询用户",httpMethod = "POST")
    @RequestMapping("getUser")
    public Result getUser(Long userId){
         Result result = new Result();
         result.setCode(200);
         result.setMessage("OK");
         result.setResult(userId);

         return result;
     }


}
